<template>
  <div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column property="userName" label="姓名" />
      <el-table-column property="userSex" label="性别" />
      <el-table-column property="userPhone" label="电话号" />
      <el-table-column property="userAge" label="年龄" />
      <el-table-column property="userEmail" label="Email" />
      <el-table-column property="userInfoName" label="用户名" />
      <el-table-column property="userInfoRemarks" label="备注" /> */
    </el-table>
  </div>
</template>

  <script>
import axios from "axios";
export default {
  name: "User",
  data() {
    return {
      tableData: [{}],
    };
  },
  mounted() {
    axios({ url: "https://localhost:44310/api/UserShow" }).then((res) => {
      console.log(res);
      this.tableData = res.data;
    });
  },
};
</script>
